home *** CD-ROM | disk | FTP | other *** search
- *** This is a simple command file that will print out labels using ***
- *** the People database outlined in the H&D Base tutorial. ***
- *** To print the labels on your printer instead of the screen, ***
- *** remove the '*' in front of the SET PRINT ON command. ***
- *** To execute this file enter DO LABELS from command level. ***
-
- USE people
- * SET PRINT ON
- DO WHILE .NOT. EOF
- ?
-
- * The following six lines flip the first and last names around
- * if there is a comma in the name field
- IF ',' $ name
- STORE @(',',name) TO COMPTR
- ? TRIM($(name,COMPTR+2))+' '+$(name,1,COMPTR-1)
- ELSE
- ? name
- ENDIF
-
- ? address
- ? TRIM(city)+", "+state+" "
- ?? zip
- ?
- SKIP
- ENDDO
- SET PRINT OFF
-
- əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə